﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Data;
using Solution.Business.Entities;

namespace Solution.Business.Component
{
    public class UnitComponent
    {
        private static UnitDAC db = new UnitDAC();

        public static List<Unit> Unit_GetByTop(string Top, string Where, string Ord)
        {
            return db.Unit_GetByTop(Top, Where, Ord);
        }

        public static void Unit_Insert(Unit unit)
        {
            db.Unit_Insert(unit);
        }

        public static void Unit_Update(Unit unit)
        {
            db.Unit_Update(unit);
        }
    }
}
